Post

Replies

Boosts

Views

Activity

Comment on Lost data in UserDefaults
Thank you so much. This fixed our issue. I'll make sure to link your answer in all existing threads, as there are a few of them. More info: In one of our apps, in application(_:didFinishLaunchingWithOptions:), based on what flags in UserDefaults are set, we either present the main dashboard OR do a complete cleanup (UserDefaults + Keychain) and present the login screen. In our case, Data Protection Entitlement was indeed set to NSFileProtectionComplete years ago. This, combined with Prewarming caused the issue in our case.
Nov ’21